﻿#region Styx Namespaces
using Styx;
using Styx.Common;
using Styx.CommonBot;
using Styx.CommonBot.Routines;
using Styx.TreeSharp;
using Styx.WoWInternals;
using Styx.WoWInternals.DBC;
using Styx.WoWInternals.WoWObjects;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {
        public bool DefensiveSpell()
        {
            if (SpellManager.CanCast("Fortifying Brew") &&
                !StyxWoW.Me.HasAura("Fortifying Brew")) // fix this later to include 2 stacks...
            {
                InstantCast("Fortifying Brew");
                Logging.Write("Interrupting " +
                    StyxWoW.Me.CurrentTarget.CastingSpell.Name +
                    " using Spell Name: 'Fortifying Brew'");
            }
            if (SpellManager.CanCast("Touch of Karma") &&
                !StyxWoW.Me.HasAura("Touch of Karma"))
            {
                InstantCast("Touch of Karma");
                Logging.Write("Interrupting " +
                    StyxWoW.Me.CurrentTarget.CastingSpell.Name +
                    " using Spell Name: 'Touch of Karma'");
            }
            return true;
        }
    }
}
